<template>
  <div class="setup">
    <el-table :data="tableData" style="width: 100%" border>
      <el-table-column prop="monney" label="可分配资金"> </el-table-column>
      <el-table-column prop="joinNum" label="参与人数"> </el-table-column>
      <el-table-column prop="intoNum" label="入围人数"> </el-table-column>
      <el-table-column prop="userfulDate" label="有效期" width="200px"> </el-table-column>
      <el-table-column prop="addDate" label="添加时间"> </el-table-column>
      <el-table-column prop="endDate" label="结束时间"> </el-table-column>
      <el-table-column label="操作" width="150px">
        <template slot-scope="scope">
          <el-button size="mini" @click="handleEdit(scope.$index, scope.row)"
            >编辑</el-button
          >
          <el-button
            size="mini"
            type="danger"
            @click="handleDelete(scope.$index, scope.row)"
            >删除</el-button
          >
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>
<script>
import vue from "vue";
import {
  Button,
  Table,
  TableColumn,
  Switch,
} from "element-ui";
vue.use(Button);
vue.use(Table);
vue.use(TableColumn);
vue.use(Switch);
import {getSetup} from '../../network/3-customer/setup'

export default {
    data(){
        return {
            tableData:[]
        }
    },
    created() {
        getSetup().then(res=>{
            this.tableData=res.data.data;
        })
    },
};
</script>
<style scoped>
.setup{
    width: 100%;
}
.el-table{
    line-height: 0;
    text-align: center;
    font-size: 12px;
}
</style>